package com.jizhi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗兆良
 * @since 2020-11-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Examine对象", description="")
public class Examine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "（检查单号）")
    @TableId(value = "eid", type = IdType.ID_WORKER)
    private Long eid;

    @ApiModelProperty(value = "检查类型id")
    private Long tid;

    @ApiModelProperty(value = "（病人id）")
    private Long bid;

    @ApiModelProperty(value = "（开具时间）")
    private Date edate;

    @ApiModelProperty(value = "（开具医生）")
    private String dname;

    @TableField(fill = FieldFill.INSERT)//插入时操作
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted;


}
